package com.work.work.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.work.work.entity.Notification;
import java.util.List;

public interface NotificationService extends IService<Notification> {
    Page<Notification> getReceivedNotifications(Integer receiverId, Integer current, Integer size);
    Page<Notification> getSentNotifications(Integer senderId, Integer current, Integer size);
    List<Notification> getUnreadNotifications(Integer receiverId);
    boolean markAsRead(Integer notificationId);
    boolean markAllAsRead(Integer receiverId);
}